Skip to content

Make nvme_metrics.py work with missing paths#245

Closed
deajan wants to merge 1 commit intoprometheus-community:masterfrom
deajan:nvme-metrics-fix
Closed

Make nvme_metrics.py work with missing paths#245
deajan wants to merge 1 commit intoprometheus-community:masterfrom
deajan:nvme-metrics-fix

Conversation

@deajan
Copy link
Contributor

@deajan deajan commented Jul 15, 2025

On RHEL9, running via cron without PATH variable fails.
This checks for proper path for nvme binary.

Signed-off-by: Orsiris de Jong <ozy@netpower.fr>
@dswarbrick
Copy link
Member

Coding (even multiple) paths into scripts is not a portable approach. It is not the script's responsibility to find the binary. Such functionality should be handled by the PATH environment, which should be suitably configured prior to launching the script (e.g. in the crontab).

@deajan deajan closed this Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants